package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DesignerProjectShareExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DesignerProjectShareExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DesignerProjectShareExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DesignerProjectShareExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DesignerProjectShareExample example = new DesignerProjectShareExample();
        return example.createCriteria();
    }

    public DesignerProjectShareExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DesignerProjectShareExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DesignerProjectShareExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DesignerProjectShareExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DesignerProjectShareExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("designerprojectshare.ProjectId is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("designerprojectshare.ProjectId is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("designerprojectshare.ProjectId =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ProjectId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("designerprojectshare.ProjectId <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ProjectId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("designerprojectshare.ProjectId >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ProjectId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectshare.ProjectId >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ProjectId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("designerprojectshare.ProjectId <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ProjectId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectshare.ProjectId <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ProjectId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("designerprojectshare.ProjectId in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("designerprojectshare.ProjectId not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectshare.ProjectId between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectshare.ProjectId not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("designerprojectshare.UserId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("designerprojectshare.UserId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("designerprojectshare.UserId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("designerprojectshare.UserId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("designerprojectshare.UserId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectshare.UserId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("designerprojectshare.UserId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectshare.UserId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("designerprojectshare.UserId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("designerprojectshare.UserId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectshare.UserId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectshare.UserId not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andShareIdIsNull() {
            addCriterion("designerprojectshare.ShareId is null");
            return (Criteria) this;
        }

        public Criteria andShareIdIsNotNull() {
            addCriterion("designerprojectshare.ShareId is not null");
            return (Criteria) this;
        }

        public Criteria andShareIdEqualTo(String value) {
            addCriterion("designerprojectshare.ShareId =", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ShareId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andShareIdNotEqualTo(String value) {
            addCriterion("designerprojectshare.ShareId <>", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ShareId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andShareIdGreaterThan(String value) {
            addCriterion("designerprojectshare.ShareId >", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ShareId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andShareIdGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.ShareId >=", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ShareId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andShareIdLessThan(String value) {
            addCriterion("designerprojectshare.ShareId <", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ShareId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andShareIdLessThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.ShareId <=", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ShareId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andShareIdLike(String value) {
            addCriterion("designerprojectshare.ShareId like", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdNotLike(String value) {
            addCriterion("designerprojectshare.ShareId not like", value, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdIn(List<String> values) {
            addCriterion("designerprojectshare.ShareId in", values, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdNotIn(List<String> values) {
            addCriterion("designerprojectshare.ShareId not in", values, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdBetween(String value1, String value2) {
            addCriterion("designerprojectshare.ShareId between", value1, value2, "shareId");
            return (Criteria) this;
        }

        public Criteria andShareIdNotBetween(String value1, String value2) {
            addCriterion("designerprojectshare.ShareId not between", value1, value2, "shareId");
            return (Criteria) this;
        }

        public Criteria andSharePasswordIsNull() {
            addCriterion("designerprojectshare.SharePassword is null");
            return (Criteria) this;
        }

        public Criteria andSharePasswordIsNotNull() {
            addCriterion("designerprojectshare.SharePassword is not null");
            return (Criteria) this;
        }

        public Criteria andSharePasswordEqualTo(String value) {
            addCriterion("designerprojectshare.SharePassword =", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.SharePassword = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSharePasswordNotEqualTo(String value) {
            addCriterion("designerprojectshare.SharePassword <>", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.SharePassword <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSharePasswordGreaterThan(String value) {
            addCriterion("designerprojectshare.SharePassword >", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.SharePassword > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSharePasswordGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.SharePassword >=", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.SharePassword >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSharePasswordLessThan(String value) {
            addCriterion("designerprojectshare.SharePassword <", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.SharePassword < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSharePasswordLessThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.SharePassword <=", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.SharePassword <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSharePasswordLike(String value) {
            addCriterion("designerprojectshare.SharePassword like", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordNotLike(String value) {
            addCriterion("designerprojectshare.SharePassword not like", value, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordIn(List<String> values) {
            addCriterion("designerprojectshare.SharePassword in", values, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordNotIn(List<String> values) {
            addCriterion("designerprojectshare.SharePassword not in", values, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordBetween(String value1, String value2) {
            addCriterion("designerprojectshare.SharePassword between", value1, value2, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andSharePasswordNotBetween(String value1, String value2) {
            addCriterion("designerprojectshare.SharePassword not between", value1, value2, "sharePassword");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayIsNull() {
            addCriterion("designerprojectshare.ExpirydateDay is null");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayIsNotNull() {
            addCriterion("designerprojectshare.ExpirydateDay is not null");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayEqualTo(Integer value) {
            addCriterion("designerprojectshare.ExpirydateDay =", value, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ExpirydateDay = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDayNotEqualTo(Integer value) {
            addCriterion("designerprojectshare.ExpirydateDay <>", value, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ExpirydateDay <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDayGreaterThan(Integer value) {
            addCriterion("designerprojectshare.ExpirydateDay >", value, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ExpirydateDay > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectshare.ExpirydateDay >=", value, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ExpirydateDay >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDayLessThan(Integer value) {
            addCriterion("designerprojectshare.ExpirydateDay <", value, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ExpirydateDay < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDayLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectshare.ExpirydateDay <=", value, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.ExpirydateDay <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateDayIn(List<Integer> values) {
            addCriterion("designerprojectshare.ExpirydateDay in", values, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayNotIn(List<Integer> values) {
            addCriterion("designerprojectshare.ExpirydateDay not in", values, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectshare.ExpirydateDay between", value1, value2, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateDayNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectshare.ExpirydateDay not between", value1, value2, "expirydateDay");
            return (Criteria) this;
        }

        public Criteria andExpirydateIsNull() {
            addCriterion("designerprojectshare.Expirydate is null");
            return (Criteria) this;
        }

        public Criteria andExpirydateIsNotNull() {
            addCriterion("designerprojectshare.Expirydate is not null");
            return (Criteria) this;
        }

        public Criteria andExpirydateEqualTo(Date value) {
            addCriterion("designerprojectshare.Expirydate =", value, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Expirydate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateNotEqualTo(Date value) {
            addCriterion("designerprojectshare.Expirydate <>", value, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Expirydate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateGreaterThan(Date value) {
            addCriterion("designerprojectshare.Expirydate >", value, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Expirydate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateGreaterThanOrEqualTo(Date value) {
            addCriterion("designerprojectshare.Expirydate >=", value, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Expirydate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateLessThan(Date value) {
            addCriterion("designerprojectshare.Expirydate <", value, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Expirydate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateLessThanOrEqualTo(Date value) {
            addCriterion("designerprojectshare.Expirydate <=", value, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Expirydate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateIn(List<Date> values) {
            addCriterion("designerprojectshare.Expirydate in", values, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateNotIn(List<Date> values) {
            addCriterion("designerprojectshare.Expirydate not in", values, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateBetween(Date value1, Date value2) {
            addCriterion("designerprojectshare.Expirydate between", value1, value2, "expirydate");
            return (Criteria) this;
        }

        public Criteria andExpirydateNotBetween(Date value1, Date value2) {
            addCriterion("designerprojectshare.Expirydate not between", value1, value2, "expirydate");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("designerprojectshare.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("designerprojectshare.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("designerprojectshare.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("designerprojectshare.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("designerprojectshare.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("designerprojectshare.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("designerprojectshare.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("designerprojectshare.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("designerprojectshare.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("designerprojectshare.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("designerprojectshare.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("designerprojectshare.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("designerprojectshare.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("designerprojectshare.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("designerprojectshare.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("designerprojectshare.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("designerprojectshare.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("designerprojectshare.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("designerprojectshare.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("designerprojectshare.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("designerprojectshare.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("designerprojectshare.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("designerprojectshare.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("designerprojectshare.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("designerprojectshare.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("designerprojectshare.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("designerprojectshare.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("designerprojectshare.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("designerprojectshare.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("designerprojectshare.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("designerprojectshare.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("designerprojectshare.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("designerprojectshare.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("designerprojectshare.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("designerprojectshare.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("designerprojectshare.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("designerprojectshare.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("designerprojectshare.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("designerprojectshare.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("designerprojectshare.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("designerprojectshare.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("designerprojectshare.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("designerprojectshare.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("designerprojectshare.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("designerprojectshare.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("designerprojectshare.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("designerprojectshare.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("designerprojectshare.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("designerprojectshare.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("designerprojectshare.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("designerprojectshare.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("designerprojectshare.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("designerprojectshare.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("designerprojectshare.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("designerprojectshare.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("designerprojectshare.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("designerprojectshare.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DesignerProjectShare.Column column) {
            addCriterion(new StringBuilder("designerprojectshare.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("designerprojectshare.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("designerprojectshare.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("designerprojectshare.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("designerprojectshare.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DesignerProjectShareExample example;

        protected Criteria(DesignerProjectShareExample example) {
            super();
            this.example = example;
        }

        public DesignerProjectShareExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DesignerProjectShare.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DesignerProjectShare.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.DesignerProjectShareExample example);
    }
}